import { get, post, put, del } from '@/js/api/dataSource'
export default {
	employee: {
		// 员工列表查询分页
		findAllEmployee () {
			return post({ url: '/archive/employee/pageQuery', responseComplete: true })
		},
		// 启用停用工位
		updateEnables () {
			return put({ url: '/archive/employee/updateEnable', responseComplete: true })
		},
		getNextCode () {
			return get({ url: '/archive/employee/getNextCode' })
		},
		// 保存 新增修改
		saveOrUpdate () {
			return post({ url: '/archive/employee/save', responseComplete: true })
		},
		findEmployeeDetailById () {
			return get({ url: '/archive/employee/findDetailByParam' })
		},
		// 批量删除员工
		deleteEmployeeMulity () {
			return del({ url: '/archive/employee/batchDelete', responseComplete: true })
		},
		// 获得启用的员工信息 下拉列表
		findEmployeeListAll () {
			return get({ url: '/archive/employee/findEmployeeListEnableAll' })
		},
		// 包含停用
		findListAll () {
			return get({ url: '/archive/employee/findListAll' })
		},
		// 穿梭框数据
		findWorkKindByEmployeeIdType () {
			return get({ url: '/archive/employee/findWorkKindByEmployeeIdType' })
		},
		// 复制 右侧员工列表
		copyGetAllEmployee () {
			return get({ url: '/archive/employee/findCopyEmployeeList' })
		},
		// 复制保存
		fromEmployeeTocopyRelation () {
			return post({ url: '/archive/employee/fromEmployeeTocopyRelation', responseComplete: true })
		}
	}
}
